package com.ruoyi.system.service.impl;

import java.util.Date;
import java.util.List;

import com.ruoyi.common.annotation.AutoFill;
import com.ruoyi.common.enums.AutoFillType;
import com.ruoyi.common.utils.DateUtils;
import com.ruoyi.common.utils.SecurityUtils;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.system.mapper.BasicInStationMessageMapper;
import com.ruoyi.system.domain.BasicInStationMessage;
import com.ruoyi.system.service.IBasicInStationMessageService;

/**
 * 站内消息Service业务层处理
 * 
 * @author ruoyi
 * @date 2025-03-02
 */
@Service
public class BasicInStationMessageServiceImpl implements IBasicInStationMessageService 
{
    @Autowired
    private BasicInStationMessageMapper basicInStationMessageMapper;

    /**
     * 查询站内消息
     * 
     * @param inStationMessageId 站内消息主键
     * @return 站内消息
     */
    @Override
    public BasicInStationMessage selectBasicInStationMessageByInStationMessageId(Long inStationMessageId)
    {
        return basicInStationMessageMapper.selectBasicInStationMessageByInStationMessageId(inStationMessageId);
    }

    /**
     * 查询站内消息列表
     * 
     * @param basicInStationMessage 站内消息
     * @return 站内消息
     */
    @Override
    public List<BasicInStationMessage> selectBasicInStationMessageList(BasicInStationMessage basicInStationMessage)
    {
        return basicInStationMessageMapper.selectBasicInStationMessageList(basicInStationMessage);
    }

    /**
     * 新增站内消息
     * 
     * @param basicInStationMessage 站内消息
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.INSERT)
    @Override
    public int insertBasicInStationMessage(BasicInStationMessage basicInStationMessage)
    {
        return basicInStationMessageMapper.insertBasicInStationMessage(basicInStationMessage);
    }

    /**
     * 修改站内消息
     * 
     * @param basicInStationMessage 站内消息
     * @return 结果
     */
    @AutoFill(operation = AutoFillType.UPDATE)
    @Override
    public int updateBasicInStationMessage(BasicInStationMessage basicInStationMessage)
    {
        return basicInStationMessageMapper.updateBasicInStationMessage(basicInStationMessage);
    }

    /**
     * 批量删除站内消息
     * 
     * @param inStationMessageIds 需要删除的站内消息主键
     * @return 结果
     */
    @Override
    public int deleteBasicInStationMessageByInStationMessageIds(Long[] inStationMessageIds)
    {
        return basicInStationMessageMapper.deleteBasicInStationMessageByInStationMessageIds(inStationMessageIds);
    }

    /**
     * 删除站内消息信息
     * 
     * @param inStationMessageId 站内消息主键
     * @return 结果
     */
    @Override
    public int deleteBasicInStationMessageByInStationMessageId(Long inStationMessageId)
    {
        return basicInStationMessageMapper.deleteBasicInStationMessageByInStationMessageId(inStationMessageId);
    }
}
